<?php
/**
 * Created by PhpStorm.
 * User: Mr wang
 * Date: 2019/12/17
 * Time: 上午10:05
 */
namespace App\Command;

use EasySwoole\EasySwoole\Command\CommandInterface;

class Test implements CommandInterface{

    public function commandName(): string
    {
        return 'test';
    }

    public function exec(array $args): ?string
    {
        //打印参数,打印测试值
        var_dump($args);
        echo 'test'.PHP_EOL;
        return null;
    }

    public function help(array $args): ?string
    {
        return "this is test";
    }
}
